package com.example.javafx.超链接;

import javafx.application.Application;
import javafx.scene.Group;
import javafx.scene.Scene;
import javafx.scene.control.Hyperlink;
import javafx.scene.layout.VBox;
import javafx.scene.text.Font;
import javafx.stage.Stage;

import java.lang.ref.PhantomReference;

public class Main_1 extends Application {

    public static void main(String[] args) {
        launch(args);
    }

    @Override
    public void start(Stage primaryStage) {

        primaryStage.setTitle("HTML");
        primaryStage.setWidth(500);
        primaryStage.setHeight(500);
        Scene scene = new Scene(new Group());
        VBox root = new VBox();
        Hyperlink hpl = new Hyperlink("yiibai.com");
        hpl.setFont(Font.font("Arial",14));
        root.getChildren().add(hpl);
        scene.setRoot(root);
        primaryStage.setScene(scene);
        primaryStage.show();
    }
}
